package javaTeste.tSenaoSe;

import java.Condicao;
import java.bloco.SenaoSe;

import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;


public class TesteBlocoSenaoSe implements Especificacao {
	SenaoSe aguaLimpa = null;

	@Before
	public void up() {
		aguaLimpa = new SenaoSe(new Condicao("agua==limpa"), null);
	}

	@Test
	public void SenaoSeCondicaoAguaLimpa() {
		Assert.assertEquals("else if(agua==limpa){}", aguaLimpa
				.codigoFonte());
	}

	@Test
	public void SenaoSeCondicaoAguaLimpaVariavelINTa() {
		aguaLimpa.setLogica("int a");
		Assert.assertEquals("else if(agua==limpa){int a}", aguaLimpa
				.codigoFonte());
	}

}